﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="StoreWeb.login1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0036)http://t.lecaimall.com/com/index.asp -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>门店管理系统 - 用户登录</title>
    <link href="css/common.css" rel="stylesheet" />
    <link href="css/login.css" rel="stylesheet" />
    <script src="lib/jquery/1.9.1/jquery.js"></script>
    <script src="js/login.js"></script>
</head>
<body class="login-body-bg">
    <!--Common Nav Start-->


    <!--Common Nav End-->
    <!--Page Header Start-->
    <div id="header" class="layout">
        <div class="logo"><a></a></div>
    </div>
    <!--Page Header End-->
    <!--Page Content Start-->
    <div style="background-color: #fff">
        <div id="login" class="layout">
            <div class="login_box">
                <form style="margin: 0px" id="frmLogin" method="post" name="frmLogin" runat="server">
                    <ul>
                        <li class="til">
                            <h2>用户登录</h2>
                        </li>
                        <li class="error-h">
                            <div id="messageBox" runat="server" class="error">
                                <i></i>
                                <p>
                                    <asp:Literal ID="txtmessage" runat="server"></asp:Literal>
                                </p>
                            </div>
                        </li>
                        <li style="padding-top: 2px" class="op">
                            <label for="username">用户名:</label>
                            <asp:TextBox ID="username" name="username" MaxLength="16"  runat="server" placeholder="用户名" class="input_bg"></asp:TextBox>

                        </li>
                        <li class="op">
                            <label for="password">密　码:</label>
                            <asp:TextBox ID="password" name="password" runat="server"  MaxLength="16" TextMode="Password" placeholder="密码" class="input_bg"></asp:TextBox>

                        </li>
                        <li style="" id="verifyCodeBox" class="yzm">
                            <label for="verifycode">验证码:</label>
                            <input id="verifycode" class="input_bg" runat="server" maxlength="4" name="verifycode">
                            <div id="refreshVerifyCode" class="validate">
                                <img src="png.aspx" id="imgVerifyCode" title="看不清,换一张" align="absMiddle" height="20" onclick="f_refreshtype()" />
                            </div>
                        </li>
                        <li class="log clearfix">
                            <asp:Button ID="btnLogin" runat="server" OnClientClick="return OnSubmit();" CssClass="btn_com fl" autocomplete="off" Text="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;" OnClick="btnsubmit_Click" />
                        </li>
                        <li class="ann">
                            <p>
                                <asp:Repeater ID="Repeater1" runat="server">
                                    <ItemTemplate>
                                       <a title="<%#Eval("newstitile") %>" href="javascript:;" onclick="admin_role_confirm(this,'<%#Eval("id") %>')" class="ml-5" style="text-decoration: none"> <%#Eval("newstitile") %></a><br>
                                    </ItemTemplate>
                                 </asp:Repeater>
                            </p>
                        </li>
                    </ul>
                </form>

    <script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
    <script type="text/javascript" src="lib/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="js/H-ui.js"></script>
    <script type="text/javascript" src="js/H-ui.admin.js"></script>
                <script type="text/javascript">

    //点击切换验证码
    function f_refreshtype() {
        var Image1 = document.getElementById("imgVerifyCode");
        if (Image1 != null) {
            Image1.src = Image1.src + "?";
        }
    }

    /*管理员-角色-审核*/
    function admin_role_confirm(obj, id) {
        $.post("ajax/news.aspx", { action: "confirm", id: id },
                  function (data) {
                      layer.open({
                          type: 1,
                          skin: 'layui-layer-demo', //样式类名
                          closeBtn: 1, //不显示关闭按钮
                          shift: 2,
                          shadeClose: false, //开启遮罩关闭
                          area: ['420px', '240px'], //宽高
                          content: '<div style="padding:10px;">' + data + '</div>'
                      });
                  });
    }

                </script>
            </div>
        </div>
    </div>
    <!--Page Content End-->
    <!--Page Footer Start-->
    <div id="footer" class="layout">
        <p class="en">沪ICP备16023693号</p>
    </div>
    <!--Page Footer End-->
    <div id="__xfz_ext_flag" _bgt_title="用户登录"></div>
</body>
</html>
